#ifndef _FILTER_H
#define _FILTER_H

/**
 * filter.h
 * Asif Shahidullah
 *
 * Defines prototypes for low-pass filter and data extraction
 * of temperature data.
 */

#include "d_list.h"

/* Removes erroneous data; criteria for removal of a data point:
 * (temp at n +- 5) than (temp at n-1).
 * Returns: the number of data points removed.*/
int remove_err_data (List);

/* Applies a low-pass filter to consecutive data samples 
 * (with discrete time unit = 1) */
void attenuate_data (List);

#endif
